package com.borened.common.core.base.map;

import com.borened.common.core.base.BaseEntity;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 基础的地理对象
 *
 * @author cch
 * @since 2023-03-13
 */

@Data
@ApiModel("基础的地理对象")
public class BaseGeo extends BaseEntity {

    @ApiModelProperty(value = "地图边界数据", required = true)
    @NotBlank
    private String geoBoundary;

    @ApiModelProperty(value = "中心点经纬度")
    private String geoCenter;

    @ApiModelProperty(value = "逻辑删除标识", hidden = true)
    @JsonIgnore
    private Long deleted;

}
